<?php

class tsw_<widget name - also filename> implements ThermdSingleWidget
{
  public function drawWidget($io,$x,$y)
  {	
		// add the stuff to the image object at $x $y
  }
}

?>